package com.itheima.service;

import com.itheima.pojo.Employee;
import com.itheima.pojo.Login;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

/**
 * @Author: 放学后海堤日记
 * @Date: 2023/4/13 11:08
 * @Desc: 后台系统员工登录业务接口
 */
public interface LoginService {
    /**
     * 系统后台登录
     * @param username
     * @param password
     * @param request
     * @return
     */
    Employee login(String username, String password, HttpServletRequest request);

    /**
     * 登录手机端
     * @param login
     * @param request
     * @return
     */
    int login(Login login, HttpServletRequest request);

    /**
     * 发送短信验证码
     * @param phone
     * @param session
     * @return
     */
    void sendMsg(String phone, HttpSession session);
}
